<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link rel="stylesheet" href="ovo_crosswiseRoll.css">
    <style>
        /*一些不固定的样式需要自己写*/
        .box{
            width: 450px;
            border: 1px solid red;
            overflow: hidden;
        }
        .box li{
            width: 150px;
            height: 75px;
        }
        .box li + li{
            margin-left: 10px;
        }
    </style>

    <script src="jquery-1.11.js"></script>
    <script src="ovo_crosswiseRoll.js"></script>

</head>
<body>
    <div class="box">
        <ul class="roll-box">
            <li class="roll-item" style="background-color:red"></li>
            <li class="roll-item" style="background-color:blue"></li>
            <li class="roll-item" style="background-color:green"></li>
            <li class="roll-item" style="background-color:orange"></li>
        </ul>
    </div>

    <script>
        $(".box").crosswiseRoll();
    </script>
</body>
</html>
